<?php
// +-------------------------------------------------------------------
// |
// +-------------------------------------------------------------------
// | Copyright (c) 2009-2016 All rights reserved.
// +-------------------------------------------------------------------
namespace Service\Api\V1;

class LaterNews
{
    public $login = false; //是否需要登录才能访问该接口
    public $title = "最新公告ok";
    public $group = '首页';
    public $desc = "";

    public $input = [
    ];

    public $output = [
        'id' => 'label=id;',
        'title' => 'label=标题;',
        'content' => 'label=内容;',
    ];

    public function run($param, $uid)
    {
        $list = (array)M('service_notice')->order('create_time desc')->find();
        return $list;
    }
}
